package com.lightsaber.trade.cloth.service.category;

import java.util.List;

import com.lightsaber.trade.cloth.entity.category.CategoryOwner;

public interface CategoryOwnerService {
    public void create(CategoryOwner categoryOwner);

    public CategoryOwner findById(String id);

    public void deleteById(String id);

    public void saveByCategoryNodeAndRoleCodes(String categoryNodeId, List<String> roleCodes)
            throws Exception;

    // public List<Role> getAllRoles();

    public List<CategoryOwner> findByCategoryNodeId(String categoryNodeId);

    public void deleteByCategoryNodeId(String categoryNodeId);

    public void generalOwnerTree(final String categoryNodeId) throws Exception;
}
